const express = require('express')
const router = express.Router()
const user_handler = require('../router_handler/user')

// 1. 导入验证表单数据的中间件
const expressJoi = require('@escook/express-joi')
// 2. 导入需要的验证规则对象
const { user_list_schema,user_info_schema } = require('../schema/user')


router.post("/list",expressJoi(user_list_schema), user_handler.getList)
router.post("/info/:id",expressJoi(user_info_schema), user_handler.getInfo)
module.exports = router